package com.springcloud.log.feign;

import com.springcloud.commom.api.R;
import com.springcloud.commom.constant.AppConstant;
import com.springcloud.log.entity.SysOpLog;
import com.springcloud.log.entity.SysVisLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = AppConstant.LOG_SERVICE_NAME, fallback = LogClientFallback.class)
public interface ILogClient {

    String API_PREFIX = "/log";

    @PostMapping(API_PREFIX + "/saveVisLog")
    R saveVisLog(@RequestBody SysVisLog sysVisLog);

    @PostMapping(API_PREFIX + "/saveOpLog")
    R<String> saveOpLog(@RequestBody SysOpLog sysOpLog);
}
